<template>
	<div class="pay-result">
		<image v-if="type === 'success'" :src="$getImgPath('tpJPNww0E94V39033d0c3cd7fb746f254070ef7f48a4_1681802460748.png')">
		<image v-else :src="$getImgPath('md7FEbNRgvL0d47b1a426e8557fcee074a86a5b1ca28_1681802488143.png')">
		<div class="tips">{{ tips }}</div>
		<div class="btn" @click.stop="backFn">返 回</div>
	</div>
</template>

<script>
	export default {
		data() {
			return {
				tips: "",
				type: ""
			}
		},
		onLoad(e) {
			this.type = e.type;
			if(e.type === "success"){
				this.tips = "支付成功"
			}else{
				this.tips = "支付失败，请重新支付"
			}
		},
		methods: {
			backFn() {
				this.$go('/pages/waybill/list?type=1', 'switch');
			}
		}
	}
</script>

<style scoped lang="scss">
	.pay-result{
		min-height: 666rpx;
		display: flex;
		justify-content: center;
		align-items: center;
		flex-direction: column;
		image{
			width: 300rpx;
			height: 300rpx;
			display: block;
		}
		.tips{
			margin-top: 30rpx;
			font-size: 32rpx;
			color: #999999;
		}
		.btn{
			margin-top: 30rpx;
			width: 200rpx;
			height: 80rpx;
			border-radius: 40rpx;
			color: #fff;
			background-color: $xzfx-theme;
			display: flex;
			justify-content: center;
			align-items: center;
			font-size: 32rpx;
		}
	}
</style>
